home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 1 Issue 2
/
PDCD-1 - Issue 02.iso
/
_editors
/
editors
/
_zap
/
!Zap
/
3rdParty
/
Wagenaar
/
DWExtHelp
next >
Wrap
Text File
|
1994-10-20
|
3KB
|
84 lines
ZapDWExt - an extension to Zap
------------------------------
[I've inserted the setup details here - Dominic]
If you wish to use ZapDWExt, you should include the following
into Zap's !Run file:
| Set search path for OPENMEMBER command
Set ZapCurDir$Path @.
Set ZapDWS$Path ZapCurDir:,ZapCurDir:^.,C:
| Set standard options for cc
Set Zap$CCOptions -IC: -throwback -Lc:o.stubs,c:o.risc_oslib -Desktop ^
| _I_ don't have standard options for amu, so next line is commented out,
| but _you_ may have standard options.
|Set Zap$AmuOptions whatever_you_want_
| ZapDWExt doesn't work with RISC OS 2. Sorry. If you really want it working,
| I might try to replace the offending code... e-mail: wagenaar@phys.uva.nl
If Zap$OSVsn>=300 Then RMLoad <Zap$3rdParty>.ZapDWExt
ZapDWExt does not provide any new modes, although I plan to add a
'soft wordwrap' mode, featuring soft line ends. This will facilitate
porting texts to Impression and WPs. (WP==wordprocessor,
WP!=WordPerfect).
It supports the following commands:
BLOCKID Blocks the identifier under the cursor. An
identifier is as defined by ANSI C, ie it starts with
a letter, and may contain numbers, letters, and the
underscore.
FIRSTBLOCK Finds the first occurence in the file of the marked
block.
FINDID := BLOCKID:FIRSTBLOCK - ie, it finds the first
occurence in the file of the identifier under the
cursor. This may be viewed as a very primitive
function finder, but it is very powerful in the sense
that it can also find the definition of a variable or
a macro. :-)
STARCOM Does '*TaskWindow "<arg>" -quit'. <arg> may be
included in the Keys file, or typed in a mini-buffer.
CC Compiles a C program using 'STARCOM "cc <filename>"'.
It opens a minibuffer in which the command line
options may be specified. Currently, the standard
options are: '-IC: -throwback -LC:o.dwlib,c:o.stubs,
c:o.smallrol -Desktop ^'. This is probably only useful
for me, so in future versions this will be changed.
OPENMAKE Opens the makefile for this project, if the string
'Makefile: <name>' is included in the start of the
file.
OPENREF Opens a file referenced at the cursor, eg for
#include <fff.h>
OPENCH If the current file is named '...h.yyy', opens
'...c.yyy' and vice versa
OPENOTHER Does either OPENREF, OPENMAKE or OPENCH, whichever is
most appropriate.
MAKE Does 'STARCOM "prefix <dirname> |M amu -f
<leafname>"'.
ANYCOMPILE Does 'MAKE' or 'CC', whichever is appropriate.
CLOSETBTW Closes all throwback and task windows.
MODBRK Sets a breakpoint in a module, at the cursor address.
The module must be loaded into Zap using 'Create.Get
module.<modname>', and the filename must have remained
unchanged. You must be careful when using this
command, because the computer may crash if you set a
breakpoint in a piece of code that is used in IRQ
mode. So: don't set breakpoints in the UtilityModule
unless you know what your doing.